package strategic_monitor

import (
	"context"
	"git.mycaigou.com/gfyx/micro-gfyx-oppty-service/infrastructure/common/utils"
)

type StrategicMonitorRepoIface interface {
	SaveCompanyMonitor(ctx context.Context, po *GfyxStrategicCompanyMonitorPo) (*GfyxStrategicCompanyMonitorPo, error)
	SaveCompanyRecord(ctx context.Context, po *GfyxStrategicCompanyRecordPo) (*GfyxStrategicCompanyRecordPo, error)
	QueryCompanyMonitorList(ctx context.Context, condition map[string]interface{}, pageInfo *utils.PageInfo) (int64, []*GfyxStrategicCompanyMonitorPo, error)
	QueryCompanyRecordList(ctx context.Context, condition map[string]interface{}, pageInfo *utils.PageInfo) (int64, []*GfyxStrategicCompanyRecordPo, error)
	UpdateCompanyMonitor(ctx context.Context, condition, data map[string]interface{}) error
	UpdateCompanyRecord(ctx context.Context, condition, data map[string]interface{}) error

	SaveIndustryMonitor(ctx context.Context, po *GfyxStrategicIndustryMonitorPo) (*GfyxStrategicIndustryMonitorPo, error)
	SaveIndustryRecord(ctx context.Context, po *GfyxStrategicIndustryRecordPo) (*GfyxStrategicIndustryRecordPo, error)
	QueryIndustryMonitorList(ctx context.Context, condition map[string]interface{}, pageInfo *utils.PageInfo, orderBy string) (int64, []*GfyxStrategicIndustryMonitorPo, error)
	QueryIndustryRecordList(ctx context.Context, condition map[string]interface{}, pageInfo *utils.PageInfo) (int64, []*GfyxStrategicIndustryRecordPo, error)
	UpdateIndustryMonitor(ctx context.Context, condition, data map[string]interface{}) error
	UpdateIndustryRecord(ctx context.Context, condition, data map[string]interface{}) error
}
